package com.tust.dao;

import com.tust.domain.Selection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SelectionDao {
    int insertSelection(Selection selection);
    int deleteSelection(Selection selection);
    int updateSelection(@Param("oldSelection") Selection oldSelection, @Param("selection") Selection selection);
    List<Selection> selectSelection(Selection selection);
    List<Selection> selectSelectionByStudentNum(@Param("studentNum") String studentNum);
    List<Selection> selectSelectionByCourseNum(@Param("courseNum") String courseNum);
    List<Selection> selectSelectionByElectiveYear(@Param("electiveYear") String electiveYear);
    List<Selection> selectSelectionByElectiveSemester(@Param("electiveSemester") String electiveSemester);
    List<Selection> selectSelectionAll();
}
